package module.dao;

import common.annotation.DaoSql;
import common.annotation.QueryDao;
import common.bean.SearchPageResult;
import common.bean.SearchParameter;
import common.dao.BaseDao;
import module.model.AssessmentDataModel;
import module.model.EvaluationFormModel;

import java.util.List;

@QueryDao
public interface EvaluationFormDao extends BaseDao<Long,EvaluationFormModel> {
    @DaoSql(sql="SELECT * FROM evaluation_form WHERE 1=1 ",resultType = "List[EvaluationFormModelMapping]")
    List<EvaluationFormModel> getEvaluationFormModelListBySearchParameter(SearchParameter searchParameter);

    @DaoSql(sql="SELECT * FROM evaluation_form WHERE 1=1 { and FORM_NAME LIKE :formName} order by CREATE_TIME desc",resultType = "Page[EvaluationFormModelMapping]")
    public SearchPageResult<EvaluationFormModel> getEvaluationFormModelListPage(SearchParameter searchParameter);
}
